$.ajaxPrefilter(function (options) {
  options.url = 'http://124.223.14.236:8060/admin' + options.url
  if (options.url.indexOf('/sys_user/') > -1) {
    options.headers = {
      Authorization: localStorage.getItem('token')
    }
    options.complete = function (res) {
      console.log(res, '接口调用完成');
      if (res.responseJSON.status === 1 && res.responseJSON.message === '身份认证失败！') {
        localStorage.removeItem('token')
        location.href = '/login.html'
      }
    }
  }
})